package library.gui.component;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;

public class PostPane extends VBox {

	private TitleLabel titleLabel;
	private InputList inputList;
	private HButtonList buttonList;
	
	public PostPane(String title, InputList inputList, Button...buttonList) {
		
		this.titleLabel = new TitleLabel(title);
		this.titleLabel.setSize(18);
		this.titleLabel.setPadding(new Insets(5));
		this.inputList = inputList;
		this.inputList.setPadding(new Insets(10));
		this.buttonList = new HButtonList(buttonList);
		this.setAlignment(Pos.CENTER);
		
		this.getChildren().add(this.titleLabel);	
		this.getChildren().add(this.inputList);	
		this.getChildren().add(this.buttonList);
		
	}
	
}
